package com.carkeeper.service;

import com.carkeeper.dto.StoreDTO;
import com.carkeeper.pojo.StoreDetailPO;
import com.carkeeper.pojo.StorePO;
import com.carkeeper.vo.Pager;
import com.carkeeper.vo.StoreQueryParam;
import com.carkeeper.vo.StoreVO;

public interface StoreService {
    /**
     *  新增商家
     * @param storeVO
     */
    boolean create(StoreVO storeVO);

    /**
     * 更新商家
     * @param storeVO
     */
    boolean update(StoreVO storeVO);

    /**
     * 根据id逻辑删除商家
     * @param id
     * @return
     */
    boolean delete(Long id);

    /**
     * 根据条件获取商家分页数据
     * @param queryParam
     * @return
     */
    Pager<StoreDTO> queryPageByParam(StoreQueryParam queryParam);

    /**
     * 根据id获取商家信息
     * @param id
     * @return
     */
    StorePO queryById(Long id);

    /**
     * 根据Id获取详情
     * @param id
     * @return
     */
    StoreDetailPO queryDetailsById(Long id);
}
